package cn.tedu.ivos.geofence.pojo.vo;

import cn.tedu.ivos.vehicle.pojo.vo.VehicleVO;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import jdk.internal.dynalink.linker.LinkerServices;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
public class GeofenceVO {
    @ApiModelProperty(value = "围栏id")
    private Long id;
    @ApiModelProperty(value = "围栏名称")
    private String name;
    @ApiModelProperty(value = "围栏状态")
    private String status;
    @ApiModelProperty(value = "围栏位置")
    private String position;
    @ApiModelProperty(value = "围栏创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    private Date createTime;
    /**
     * 下面三个字段会在车辆分配模块中使用
     */
    @ApiModelProperty(value = "围栏绑定车辆总数")
    private Integer totalNum;
    @ApiModelProperty(value = "围栏可用车辆数")
    private Integer availableNum;
    @ApiModelProperty(value = "围栏绑定车辆列表")
    private List<VehicleVO> vehicleList;
}
